package org.wlc.demov1Impl.channel;

import org.wlc.demov1Impl.model.IPayMode;

import java.math.BigDecimal;

/**
 * @author 王立朝
 * @date 2022/5/22
 * @description: 支付抽象类
 */
public abstract class Pay {

    protected IPayMode iPayMode;

    public Pay(IPayMode iPayMode) {
        this.iPayMode = iPayMode;
    }

    /**
     * 转账接口
     * @param uId
     * @param tradeId
     * @param amount
     * @return
     */
    public abstract String transfer (String uId, String tradeId, BigDecimal amount);
}
